package com.hzdl.secondweektest.t2;

public class DoorFactory {

	public static Door getDoor(String name) {
		if ("ľ��".equals(name)) {
			return new WoodDoor();
		}
		if ("����".equals(name)) {
			return new IronDoor();
		}
		if ("������".equals(name)) {
			return new GlassDoor();
		}
		System.out.println("���ǹ���������" + name);
		return null;
	}
	

}
